﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AspNetCore.Host.Routing;
using Microsoft.Extensions.Logging;

namespace AspNetCore.Host.Mvc
{
    public class TokenController : ControllerBase
    {
        private readonly ILogger<TokenController> _logger;
        
        public TokenController(ILogger<TokenController> logger)
        {
            _logger = logger;
        }

        [HttpGet("/connect/token")]
        public void GetAsync()
        {
            Response.Write($"token={Guid.NewGuid()}");
        }
    }
}
